package com.ndp.fb.enums;

import lombok.Getter;

/**
 * Created by infi on 2014/12/23.
 */
@Getter
public enum CampaignGroupResourceStatus {
    WalleCreate(1), Matched(2);
    private int code;

    CampaignGroupResourceStatus(int code) {
        this.code = code;
    }

    public static CampaignGroupResourceStatus getCode(int code) {
        for (CampaignGroupResourceStatus c : CampaignGroupResourceStatus.values()) {
            if (c.code == code) {
                return c;
            }
        }
        return null;
    }
}
